/*   1:    */ package com.rinsi.app.azsb.azzl.jcsh;
/*   2:    */ 
/*   3:    */ import com.rinsi.core.contoller.CoreSimpleController;
/*   4:    */ import com.rinsi.core.service.CoreSimpleService;
/*   5:    */ import java.io.IOException;
/*   6:    */ import java.util.Map;
/*   7:    */ import javax.servlet.ServletOutputStream;
/*   8:    */ import javax.servlet.http.HttpServletRequest;
/*   9:    */ import javax.servlet.http.HttpServletResponse;
/*  10:    */ import org.springframework.beans.factory.annotation.Autowired;
/*  11:    */ import org.springframework.stereotype.Controller;
/*  12:    */ import org.springframework.ui.ModelMap;
/*  13:    */ import org.springframework.web.bind.annotation.RequestMapping;
/*  14:    */ 
/*  15:    */ @Controller
/*  16:    */ @RequestMapping({"/azsb/azzl/jcsh"})
/*  17:    */ public class JcshController
/*  18:    */   extends CoreSimpleController
/*  19:    */ {
/*  20:    */   @Autowired
/*  21:    */   private JcshService jcshService;
/*  22:    */   
/*  23:    */   @RequestMapping({"/getImage"})
/*  24:    */   public void getImage(ModelMap model, HttpServletRequest request, HttpServletResponse response)
/*  25:    */   {
/*  26:    */     try
/*  27:    */     {
/*  28: 33 */       Map<String, Object> data = this.jcshService.getOrganImg(model);
/*  29:    */       
/*  30: 35 */       response.setContentType("image/JPEG;charset=UTF-8");
/*  31:    */       
/*  32: 37 */       response.setContentType("application/x-msdownload;");
/*  33:    */       
/*  34: 39 */       response.getOutputStream().write((byte[])data.get("ORGAN_STAMP"));
/*  35:    */     }
/*  36:    */     catch (IOException e)
/*  37:    */     {
/*  38: 43 */       e.printStackTrace();
/*  39:    */     }
/*  40:    */   }
/*  41:    */   
/*  42:    */   @RequestMapping({"/organStamp"})
/*  43:    */   public Map<String, Object> organStamp(ModelMap model, HttpServletRequest request)
/*  44:    */   {
/*  45: 61 */     model.putAll(this.jcshService.organStamp(model));
/*  46:    */     
/*  47: 63 */     return model;
/*  48:    */   }
/*  49:    */   
/*  50:    */   public CoreSimpleService servce()
/*  51:    */   {
/*  52: 69 */     return this.jcshService;
/*  53:    */   }
/*  54:    */   
/*  55:    */   @RequestMapping({"/updateJcsh"})
/*  56:    */   public Map<String, Object> updateJcsh(ModelMap model, HttpServletRequest request)
/*  57:    */   {
/*  58: 84 */     model.putAll(this.jcshService.updateJcsh(model));
/*  59:    */     
/*  60: 86 */     return model;
/*  61:    */   }
/*  62:    */   
/*  63:    */   @RequestMapping({"/saveScrqz"})
/*  64:    */   public Map<String, Object> saveScrqz(ModelMap model, HttpServletRequest request)
/*  65:    */   {
/*  66: 92 */     model.putAll(this.jcshService.saveScrqz(model));
/*  67:    */     
/*  68: 94 */     return model;
/*  69:    */   }
/*  70:    */   
/*  71:    */   @RequestMapping({"/saveFgldqz"})
/*  72:    */   public Map<String, Object> saveFgldqz(ModelMap model, HttpServletRequest request)
/*  73:    */   {
/*  74:100 */     model.putAll(this.jcshService.saveFgldqz(model));
/*  75:    */     
/*  76:102 */     return model;
/*  77:    */   }
/*  78:    */   
/*  79:    */   @RequestMapping({"/updateJcyj"})
/*  80:    */   public Map<String, Object> updateJcyj(ModelMap model, HttpServletRequest request)
/*  81:    */   {
/*  82:108 */     model.putAll(this.jcshService.updateJcyj(model));
/*  83:    */     
/*  84:110 */     return model;
/*  85:    */   }
/*  86:    */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.azsb.azzl.jcsh.JcshController
 * JD-Core Version:    0.7.0.1
 */